Browse Source
			
			
			Merge pull request #14 from toranger/master
			
				url encode without /
			
			
				tags/v0.7.8
			
			
		 
		
			
				
					
						
						toranger
					
					7 years ago
					
						
							committed by
							
								
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
				  
				  No known key found for this signature in database
				  
				  	
						GPG Key ID: 4AEE18F83AFDEB23
				  	
				  
				
			
		
		
		
	
		
			
				 1 changed files with 
1 additions and 
1 deletions
			 
			
		 
		
			
				- 
					
					
					 
					helper.go
				
 
			
		
		
			
				
					
					
						
							
								
									
										
											
	
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -52,7 +52,7 @@ func encodeURIComponent(s string) string { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							c := s[i] | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							switch c { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							case '-', '_', '.', '!', '~', '*', '\'', '(', ')': | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							case '-', '_', '.', '!', '~', '*', '\'', '(', ')', '/': | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								continue | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							default: | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								// Unreserved according to RFC 3986 sec 2.3
 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |