~otheb/kb

25f02ab992b5e7ad96a49f59af87a97fcb26e16e — Olie Ayre 2 months ago d795d4d
Now handles 304s after editing
1 files changed, 4 insertions(+), 0 deletions(-)

M kb/main.d
M kb/main.d => kb/main.d +4 -0
@@ 30,6 30,7 @@ int usage() {
}

const string entryfooter = q"EOS

# Please enter your description for the knowledge base. Lines starting with '#'
# will be ignored, and an empty message or title will abort the entry creation.
#


@@ 211,6 212,9 @@ void submit( string id = "" ) {
		if ( res.code == 404 ) {
			writeln( "Entry " , id , " doesn't exist" ) ;
			return ;
		} else if ( res.code == 304 ) {
			writeln( "New version is identical to exsiting" ) ;
			return ;
		} else if ( res.code != 200 ) {
			writeln( "Error " , res.code ) ;
			return ;