summaryrefslogtreecommitdiffstats
path: root/authfas.module
diff options
context:
space:
mode:
authorPaul W. Frields <stickster@gmail.com>2010-07-15 22:04:21 -0400
committerPaul W. Frields <stickster@gmail.com>2010-07-15 22:04:21 -0400
commit358263a8ef512f112768d216185143daba3ec635 (patch)
tree4711eb8fcce6b8e9288393be798ac308686a0d13 /authfas.module
parent312e19c82070c38a91f1e7437efdaefe1c4c41c5 (diff)
downloaddrupal-authfas-6x-358263a8ef512f112768d216185143daba3ec635.tar.gz
drupal-authfas-6x-358263a8ef512f112768d216185143daba3ec635.tar.xz
drupal-authfas-6x-358263a8ef512f112768d216185143daba3ec635.zip
Set user agent properly
Diffstat (limited to 'authfas.module')
-rw-r--r--authfas.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/authfas.module b/authfas.module
index 5c72f2d..ed3ac18 100644
--- a/authfas.module
+++ b/authfas.module
@@ -134,7 +134,7 @@ function authfas_admin_validate($form, &$form_state) {
curl_setopt($ch, CURLOPT_URL, 'https://'.$fasurl.'/json/');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "user_name=".urlencode($username)."&password=".urlencode($password)."&login=Login");
- curl_setopt($ch, CURLOPT_HEADERS, "user-agent: Drupal AuthFAS 0.1; Accept: application/json;");
+ curl_setopt($ch, CURLOPT_USERAGENT, "Drupal AuthFAS 0.1;");
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_MAXREDIRS, 5);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);