Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
updated jQuery to version 1.8
  • Loading branch information
kraih committed Aug 9, 2012
1 parent 2b05362 commit 48c16b5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
1 change: 1 addition & 0 deletions Changes
@@ -1,5 +1,6 @@

3.28 2012-08-10
- Updated jQuery to version 1.8.
- Improved tests.

3.27 2012-08-09
Expand Down
12 changes: 6 additions & 6 deletions lib/Mojo/Message/Request.pm
Expand Up @@ -75,18 +75,18 @@ sub fix_headers {
# Basic authentication
my $url = $self->url;
my $headers = $self->headers;
if ((my $userinfo = $url->userinfo) && !$headers->authorization) {
$headers->authorization('Basic ' . b64_encode($userinfo, ''));
}
my $auth = $url->userinfo;
$headers->authorization('Basic ' . b64_encode($auth, ''))
if $auth && !$headers->authorization;

# Proxy
if (my $proxy = $self->proxy) {
$url = $proxy if $self->method eq 'CONNECT';

# Basic proxy authentication
my $userinfo = $proxy->userinfo;
$headers->proxy_authorization('Basic ' . b64_encode($userinfo, ''))
if $userinfo && !$headers->proxy_authorization;
my $proxy_auth = $proxy->userinfo;
$headers->proxy_authorization('Basic ' . b64_encode($proxy_auth, ''))
if $proxy_auth && !$headers->proxy_authorization;
}

# Host
Expand Down

0 comments on commit 48c16b5

Please sign in to comment.