Comment #8 on issue 298 by
[hidden email]: FastCGI parsing of
content-length header fails on present but empty header
http://code.google.com/p/glassdb/issues/detail?id=298Somehow a 'nil' sneaked in
(Gs 2.4.5.1 with the fix applied in combination with either lighttpd or
nginx)
when CONTENT_LENGTH was absent, I don't know why.
here is my current work-around, just for documentation, in case this bug
hits again:
contentLengthHeader
|p|
p := params at: 'CONTENT_LENGTH' ifAbsent: '0'.
^ (p isNumber or: [p isString and: [p notEmpty and: [p isAllDigits]]])
ifTrue: [p asNumber]
ifFalse: [0]