#1826 closed defect (fixed)

http-name->symbol broken

Reported by: felix winkelmann Owned by: sjamaan
Priority: major Milestone: 6.0.0
Component: extensions Version: 5.3.0
Keywords: intarweb Cc:
Estimated difficulty: trivial

Description

In intarweb, the procedure "http-name->symbol" assumes "string-downcase!" returns its result, but this is just incidental to the srfi-13 reference implementation. In utf CHICKEN, the procedure has been changed and returns the undefined value, making the intarweb primitive fail, which gets further obscured by exception handling in "parse-header-line".

To fix this, just use "string-downcase".

Change History (1)

comment:1 Changed 15 months ago by sjamaan

Resolution: fixed
Status: assignedclosed

Thanks for pointing that out! I was under the (mistaken) impression that SRFI-13 used the same convention as SRFI-1 where an exclamation mark indicates the procedure *may* alter its input but it not required to, and will return the new object.

I've pushed intarweb 2.0.3 which fixes this. I'll have to remember to go through my other eggs to see if this incorrect notion infected those as well!

Note: See TracTickets for help on using tickets.