Fixed logical mistake

Only "GET" is checked, not "POST" - plus a spelling mistake fixed