Welcome to the "trac"-ing site of http-access2!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Ticket #149 (closed defect: fixed)

Opened 2 years ago

Last modified 1 year ago

BasicAuth and whitespace in the middle

Reported by: anonymous Assigned to: nahi
Priority: normal Milestone: 2.0.7
Component: core Version: 2.0
Keywords: Cc:

Description

Since base64 could have line breaks (according to the spec you have them every 76 characters), should the set method in BasicAuth strip these in the middle like it does on the ends?

Technically these are to be ignored by whoever reads them, but they aren't by a client I'm working with -- who's using Microsoft IIS and ASP.NET. So I had to change the BasicAuth set method to do the following:

old - @auth[uri] = ["#{user_id}:#{passwd}"].pack('m').strip

new - @auth[uri] = ["#{user_id}:#{passwd}"].pack('m').gsub(/[\s]/,'')

Change History

04/29/07 19:58:15 changed by nahi

  • milestone changed from undefined to 2.0.7.

04/30/07 22:40:00 changed by nahi

  • status changed from new to closed.
  • resolution set to fixed.

[141] fixed it.