Changeset 3289

Show
Ignore:
Timestamp:
12/16/09 17:04:11 (10 years ago)
Author:
cemeyer
Message:

#797: Fix httpretrieve header sanity checks, remove an erroneous space in header encoding.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • seattle/trunk/seattlelib/httpretrieve.repy

    r3276 r3289  
    559559        # raise an exception if the key or value is a empty field 
    560560        raise HttpUserInputError('The given empty http header feild of key or value') 
    561       if key.capitalize() != key: 
    562         raise HttpUserInputError('The given http header key is not capitalized, given: ' + key) 
    563561 
    564562      # add the key and value to the http header field 
    565       clienthttpheader += key + ' : ' + val + '\r\n'   
     563      clienthttpheader += key + ': ' + val + '\r\n'   
    566564 
    567565    # return the string of the http header