curl-library
Any explanation behind the value of CURLAUTH_ONLY?
Date: Tue, 13 Jan 2015 11:49:44 -0200
Currently it's 1 << 31 (2147483648), which is greater than the biggest 32 bit signed int. I'm asking that because javascript will cast all of its double values into signed 32-bit integers to do the bitwise operation, causing given value to overflow to -2147483648.
However, in the node.js binding I'm working on, it seems to work even with the overflow, for example:
Setting HTTPAUTH to DIGEST | ONLY, which value is going to be -2147483644, works as expected, it tries to authenticate using only DIGEST.
So, can someone explain what is going on to me?
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-01-13