forked from cadence/breezewiki
		
	strict proxy false in test as requested by blankie
This commit is contained in:
		
							parent
							
								
									7a8a1cd40f
								
							
						
					
					
						commit
						4968dc2a49
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -146,12 +146,12 @@ | ||||||
|     (check-equal? (get-media-html "https://static.wikia.nocookie.net/b" "audio/mp3") |     (check-equal? (get-media-html "https://static.wikia.nocookie.net/b" "audio/mp3") | ||||||
|                   `(audio (@ (src "/proxy?dest=https%3A%2F%2Fstatic.wikia.nocookie.net%2Fb") |                   `(audio (@ (src "/proxy?dest=https%3A%2F%2Fstatic.wikia.nocookie.net%2Fb") | ||||||
|                              (controls))))) |                              (controls))))) | ||||||
|   (parameterize ([(config-parameter 'strict_proxy) "no"]) |   (parameterize ([(config-parameter 'strict_proxy) "false"]) | ||||||
|     (check-equal? (get-media-html "https://static.wikia.nocookie.net/c" "application/ogg") |     (check-equal? (get-media-html "https://static.wikia.nocookie.net/c" "application/ogg") | ||||||
|                   `(audio (@ (src "/proxy?dest=https%3A%2F%2Fstatic.wikia.nocookie.net%2Fc") |                   `(audio (@ (src "https://static.wikia.nocookie.net/c") | ||||||
|                              (controls)))) |                              (controls)))) | ||||||
|     (check-equal? (get-media-html "https://static.wikia.nocookie.net/d" "video/mp4") |     (check-equal? (get-media-html "https://static.wikia.nocookie.net/d" "video/mp4") | ||||||
|                   `(video (@ (src "/proxy?dest=https%3A%2F%2Fstatic.wikia.nocookie.net%2Fd") |                   `(video (@ (src "https://static.wikia.nocookie.net/d") | ||||||
|                              (controls))))) |                              (controls))))) | ||||||
|   (check-equal? (get-media-html "https://example.com" "who knows") `"") |   (check-equal? (get-media-html "https://example.com" "who knows") `"") | ||||||
|   (check-equal? (get-media-html "https://example.com" #f) `"")) |   (check-equal? (get-media-html "https://example.com" #f) `"")) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue