fukamachi / clack

Web server abstraction layer for Common Lisp
MIT License
1.05k stars 86 forks source link

Fix crashing when no Content-Type given #66

Closed olivermg closed 11 years ago

olivermg commented 11 years ago

Sorry, I guess I messed things up with my last patch. Here is the fix.

fukamachi commented 11 years ago

Ah, I've never noticed that.

eql is better to compare numbers.

http://www.lispworks.com/documentation/HyperSpec/Body/f_eq.htm

An implementation is permitted to make copies'' of characters and numbers at any time. The effect is that Common Lisp makes no guarantee that eq is true even when both its arguments arethe same thing'' if that thing is a character or number.

Though most of implementations return T for (eq 1 1), it could be changed in the future.

olivermg commented 11 years ago

Sounds reasonable. Fixed. Thanks for the hint :)