treeform / puppy

Puppy fetches via HTTP and HTTPS
MIT License
185 stars 27 forks source link

puppy should not send URI fragments to server #17

Closed veksha closed 3 years ago

veksha commented 3 years ago
import puppy
var u = parseUrl("https://www.google.com#1")
#u.fragment = "" #workaround. puppy should not send URI fragments to server
let req = Request(url: u,verb: "get")
echo fetch(req).body[0..180]

output:

<!DOCTYPE html>
<html lang=en>
  <meta charset=utf-8>
  <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
  <title>Error 404 (Not Found)!!1</title>
treeform commented 3 years ago

Fixed https://github.com/treeform/puppy/pull/18

treeform commented 3 years ago

Thank you for reporting the issue!