An organism's susceptibility to pathogens is contingent on various environmental factors, including the availability of nutrition. Starvation can alter host susceptibility to infections, either directly via depletion of resources essential for proper functioning of the immune system, or indirectly via the various physiological changes it induces within the host body. We tested if the susceptibility of Drosophila melanogaster populations to Enterococcus faecalis infection is affected by (a) whether the hosts are starved before or after the infection, and (b) the evolutionary history of the host. Hosts from laboratory fly populations that have been experimentally evolved to be more resistant to E. faecalis, and their corresponding control populations, were subjected to infection with or without being starved prior to and after being infected. We found that the effect of starvation on susceptibility to E. faecalis changed with the timing of starvation: starvation after infection improved survival of infected hosts, irrespective of how they were treated before infection, while starving only prior to infection (and not after) compromised post-infection survival. The changes in infection susceptibility were uniform in both the evolved and the control populations, suggesting that the effects of starvation are not dependent on pre-existing resistance to the infecting pathogen.