Commit 6bf2a9e6 authored by Florian Hockmann's avatar Florian Hockmann

Add test for missing request method

parent a78426d3
......@@ -502,6 +502,14 @@ namespace PcapDotNet.Packets.Test
Assert.IsFalse(packet.Ethernet.IpV4.Tcp.Http.IsValid);
}
[TestMethod]
public void HttpRequestMissingMethodNotAllowed()
{
var packet = BuildPacket(" / HTTP/1.0\r\n\r\n");
Assert.IsFalse(packet.Ethernet.IpV4.Tcp.Http.IsValid);
}
[TestMethod]
public void HttpValidResponseTest()
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment