Permalink
Browse files

not sending Cookie header if there are no cookies

  • Loading branch information...
Shahar Evron
Shahar Evron committed Mar 11, 2012
1 parent 0524705 commit 1fcf2a9712f0e638b431ec0e38f6784edd5752f7
Showing with 3 additions and 1 deletion.
  1. +3 −1 library/Zend/Http/Client.php
@@ -426,7 +426,9 @@ protected function prepareRequest(Request $request)
}
}
- $request->headers()->addHeader($cookieHeader);
+ if (count($cookieHeader)) {
+ $request->headers()->addHeader($cookieHeader);
+ }
}
/**

0 comments on commit 1fcf2a9

Please sign in to comment.