Skip to content

Commit

Permalink
Fix incorrect usage of rb_define_const (thanks evanphx)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 authored and Phillip Toland committed Jun 18, 2010
1 parent e475ab2 commit 625f915
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ext/patron/session_ext.c
Expand Up @@ -438,8 +438,8 @@ void Init_session_ext() {
rb_define_method(cSession, "handle_request", session_handle_request, 1);
rb_define_method(cSession, "enable_cookie_session", enable_cookie_session, 1);

rb_define_const(cRequest, "AuthBasic", CURLAUTH_BASIC);
rb_define_const(cRequest, "AuthDigest", CURLAUTH_DIGEST);
rb_define_const(cRequest, "AuthAny", CURLAUTH_ANY);
rb_define_const(cRequest, "AuthBasic", INT2FIX(CURLAUTH_BASIC));
rb_define_const(cRequest, "AuthDigest", INT2FIX(CURLAUTH_DIGEST));
rb_define_const(cRequest, "AuthAny", INT2FIX(CURLAUTH_ANY));

}

0 comments on commit 625f915

Please sign in to comment.