Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Remove whitespace [Gun.io WhitespaceBot]

  • Loading branch information...
commit d7edb6869d0f32472346dffe84caf83033dc855a 1 parent c2d8520
authored October 20, 2011
16  lib/LWP/Simple.pm
@@ -24,7 +24,7 @@ method has_basic_auth (Str $host) {
24 24
     if $host ~~ /^ (\w+) \: (\w+) \@ (\N+) $/ {
25 25
         my $user = $0.Str;
26 26
         my $pass = $1.Str;
27  
-        my $host = $2.Str;		
  27
+        my $host = $2.Str;
28 28
         return $user, $pass, $host;
29 29
     }
30 30
 
@@ -196,7 +196,7 @@ method getstore (Str $url, Str $filename) {
196 196
 
197 197
     my $fh = open($filename, :bin, :w);
198 198
     my $ok = $fh.print($content);
199  
-    $fh.close; 
  199
+    $fh.close;
200 200
 
201 201
     return $ok;
202 202
 }
@@ -204,20 +204,20 @@ method getstore (Str $url, Str $filename) {
204 204
 method parse_url (Str $url) {
205 205
     my $u = URI.new($url);
206 206
     my $path = $u.path_query;
207  
-    
  207
+
208 208
     my $user_info = $u.grammar.parse_result<URI_reference><URI><hier_part><authority><userinfo>;
209  
-    
  209
+
210 210
     return (
211  
-        $u.scheme, 
212  
-        $user_info ?? "{$user_info}@{$u.host}" !! $u.host, 
213  
-        $u.port, 
  211
+        $u.scheme,
  212
+        $user_info ?? "{$user_info}@{$u.host}" !! $u.host,
  213
+        $u.port,
214 214
         $path eq '' ?? '/' !! $path,
215 215
         $user_info ?? {
216 216
             host => $u.host,
217 217
             user => ~ $user_info[0]<likely_userinfo_component>[0],
218 218
             password => ~ $user_info[0]<likely_userinfo_component>[1]
219 219
         } !! Nil
220  
-    );    
  220
+    );
221 221
 }
222 222
 
223 223
 method stringify_headers (%headers) {
2  t/basic-auth.t
... ...
@@ -1,7 +1,7 @@
1 1
 #
2 2
 # Test the basic auth code path
3 3
 #
4  
- 
  4
+
5 5
 use v6;
6 6
 use Test;
7 7
 
2  t/parse-url.t
... ...
@@ -1,7 +1,7 @@
1 1
 #
2 2
 # Test the parse_url() method
3 3
 #
4  
- 
  4
+
5 5
 use v6;
6 6
 use Test;
7 7
 
2  t/stringify-headers.t
... ...
@@ -1,7 +1,7 @@
1 1
 #
2 2
 # Test the parse_url() method
3 3
 #
4  
- 
  4
+
5 5
 use v6;
6 6
 use Test;
7 7
 

0 notes on commit d7edb68

Please sign in to comment.
Something went wrong with that request. Please try again.