mrcrackerplays / webserv Goto Github PK
View Code? Open in Web Editor NEWSmall HTTP server made in C++
Small HTTP server made in C++
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.