File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -244,5 +244,5 @@ function serve_parents(http::HTTP.Stream)
244244end
245245
246246function serve_robots_txt (http:: HTTP.Stream )
247- return serve_data (http, " User-agent: * Disallow : /\n " , " text/plain" )
247+ return serve_data (http, " User-agent: *\n Disallow : /\n " , " text/plain" )
248248end
Original file line number Diff line number Diff line change 104104
105105 response = HTTP. get (" $(server_url) /robots.txt" )
106106 @test response. status == 200
107- @test chomp ( String (response. body)) == " User-agent: * Disallow : /"
107+ @test String (response. body) == " User-agent: *\n Disallow : /\n "
108108
109109 # Ensure that some random URL gets a 404
110110 @test_throws HTTP. ExceptionRequest. StatusError HTTP. get (" $(server_url) /docs" )
You can’t perform that action at this time.
0 commit comments