Giter Club home page Giter Club logo

webserv's People

Contributors

mrcrackerplays avatar ydemura avatar

Stargazers

 avatar

Watchers

 avatar

webserv's Issues

error page only partially being sent

whenever a server error happens and the server tries to send the contents or the root/errors/error.html file it only partially gets sent

<html><head><title>Err

instead of the whole file

<html><head><title>Error</title><style>*{text-align: center;}</style></head>
<body>
<h1>An Error Occurred</h1>
<hr>Webserv
</body></html>

the response header says content-length:22 which lines up with the number of characters sent, so it seems like the content-length just isn't being calculated correctly

exception when missing root location

given the following config, an exception happens when going to localhost:8080/index.html causing all further requests to hang. when first going to localhost:8080/new/file.txt the page loads as normal but an exception stil happens causing all further requests to hang.

server {
	port 8080
	host localhost
	location /new/ {
		methods GET
		index	file.txt
	}
}

the exception is pretty much guaranteed to be the throw exception at the end of Server::getClosestLocation but I am unsure of how to best handle it (to not allow configs without a / location or to instead add a default Location)

want to hear your opinion on it first @ydemura

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.